package com.zyz.E_面向对象.I_继承.练习;

/**
 * @author: vick
 * @Date: 2025/3/16
 * @Description:
 * @version: 1.0
 */
public class Cylinder extends Circle{
    private double length;

    public Cylinder(double radius, double length) {
        super(radius);
        this.length = length;
    }

    public double getLength() {
        return length;
    }

    public void setLength(double length) {
        this.length = length;
    }
    public double findVolume() {
        return super.findArea() * this.length;
    }
}
